package com.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
public class Cors {

    @Autowired
    private HttpServletRequest request;

    @Autowired
    private HttpServletResponse response;

//    @RequestMapping(value = "/**",method = RequestMethod.OPTIONS)
//    public int cors(){
//        return 1;
//    }
}
